<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--js库-->
	<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
	<script type="text/javascript">
		function init(){
			parent.waiting_stop();
		}
	</script>
	<title>${title}</title>
  </head>
  
  <body onload="init()">
  		<ec:table items="list" var="user" title="" width="100%"
			retrieveRowsCallback="process" filterRowsCallback="process"
			maxRowsExported="1000" pageSizeList="15,30,50,all" useAjax="false"
			rowsDisplayed="15" sortable="false" filterable="false"
			resizeColWidth="true" classic="true" minHeight="200"
			excludeParameters="checkAll,user_id_"
			toolbarContent="extend status|pagejump|navigation|pagesize|refresh"
			action="${ctx}/userVcl/list">
			<ec:row>
				<ec:column property="user_id_"
					title="选择" style="text-align:center;width:34px;" sortable="false">
					<input type='checkbox' value='${user.user_id}' name='id' id="id" ></input>
				</ec:column>
				<ec:column property="serial" title="序号" style="text-align:center;width:30px;">${GLOBALROWCOUNT}</ec:column>
				<ec:column property="user_id" title="用户帐号"><a href="javascript:void(0);" onclick="javascript:parent.view('${user.user_id}');">${user.user_id}</a></ec:column>
				<ec:column property="user_name" title="用户姓名">${user.user_name }</ec:column>
				<ec:column property="dept_name" title="所属部门">${user.dept_name }</ec:column>
				<ec:column property="sex_name" title="性别" style="text-align:center;">${user.sex_name }</ec:column>
				<ec:column property="status" title="用户状态" style="text-align:center;width:90px;">
					<c:if test="${user.status == 2}">
						<span style="color: red;">停用</span>
					</c:if>
					<c:if test="${user.status == 1}">
						<span style="color: green;">启用</span>
					</c:if>
				</ec:column>
			</ec:row>
		</ec:table>
  </body>
</html>